<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Order</title>
    <style>
        @media screen and (min-width: 600px) {
            body {
                background-color: #faffda;
                padding: 60px 0;
                margin: 0;
            }
            #logo-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                font-size: 120%;
            }
            #logo-header img {
                width: 60px;
                aspect-ratio: 1;
                margin-right: 10px;
            }
            #order-infos {
                position: relative;
                margin: 60px 0;
                overflow: hidden;
                display: flex;
                padding: 30px 0;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            #order-infos img {
                position: absolute;
                width: 100%;
                left: 0;
                top: 0;
                object-position: center;
                object-fit: cover;
                opacity: 0.3;
                z-index: 1;
            }
            #order-infos .order-infos-context {
                position: relative;
                max-width: 500px;
                line-height: 2;
                z-index: 2;
            }
            #order-infos .order-infos-context a {
                text-decoration: none;
                color: white;
                background: orange;
                font-weight: 700;
                padding: 5px  20px;
                border-radius: 4px;
                height: 2rem;
                line-height: 2rem;
                display: inline-block;
            }
            #order-details {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            #order-details table {
                max-width: 300px;
            }
            #order-details table th {
                font-weight: 700;
                text-align: left;
            }
            #order-details table td {
                font-weight: 700;
                font-size: 80%;
            }
        }
        @media screen and (max-width: 600px) {
            body {
                background-color: #faffda;
                padding: 40px 0;
                margin: 0;
            } 
            #logo-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                font-size: 80%;
            }
            #logo-header img {
                width: 40px;
                aspect-ratio: 1;
                margin-right: 10px;
            }
            #order-infos {
                position: relative;
                margin: 60px 0;
                overflow: hidden;
                display: flex;
                padding: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            #order-infos img {
                position: absolute;
                width: 100%;
                left: 0;
                top: 0;
                object-position: center;
                object-fit: cover;
                opacity: 0.3;
                z-index: 1;
            }
            #order-infos .order-infos-context {
                position: relative;
                max-width: 500px;
                line-height: 2;
                z-index: 2;
            }
            #order-infos .order-infos-context a {
                text-decoration: none;
                color: white;
                background: orange;
                font-weight: 700;
                padding: 5px  20px;
                border-radius: 4px;
                height: 1.5rem;
                line-height: 1.5rem;
                display: inline-block;
            }
            #order-details {
                display: flex;
                align-items: center;
                justify-content: center;
            }
            #order-details table {
                max-width: 300px;
            }
            #order-details table th {
                font-weight: 700;
                text-align: left;
            }
            #order-details table td {
                font-weight: 700;
                font-size: 80%;
                padding-right: 10px;
            }
        }
    </style>
</head>
<body>
    <section id="logo-header">
        <img src="<%= images.logo %> alt="">
        汲悟科技
    </section>
    <section id="order-infos">
        <img src="<%= images.bg %>" alt="">
        <div class="order-infos-context">
            <div>
                尊敬的<%= companyName %>:
            </div>
            <div>
                您购买的 <strong>跨境电商全链条货物保障险年度保单</strong> 已于<%= payTime %>成功支付您可使用手机号 <%= phone %> 登录 管理后台 查看年度保单并进行货运申报:
            </div>
            <div style="text-align: center;">
                <a href="//gwotech.com/login" target="_blank"> 》》进 入 管 理 后 台</a>
            </div>
        </div>
    </section>
    <section id="order-details">
        <table>
            <tr>
                <th colspan="2">保单概要如下:</th>
            </tr>
            <tr>
                <td>投 保 公 司:</td>
                <td><%= companyName %></td>
            </tr>
            <tr>
                <td>付 款 时 间:</td>
                <td><%= payTime %></td>
            </tr>
            <tr>
                <td>年度保单额度:</td>
                <td><%= policyLimit %></td>
            </tr>
            <tr>
                <td>生效日期:</td>
                <td><%= effectiveStartDate %>~<%= expireDate %></td>
            </tr>
        </table>
    </section>
</body>
</html>